const express = require('express')
const app = express()
const path = require('path')

// const add = express.Router()
const add = require('./router/add')

require('./model/index')
const User = require('./model/user')

console.log(__dirname);
app.use('/static', express.static(path.join(__dirname, 'public')));


app.use('/add', add)


const list = require('./router/list')

app.use('/list', list)



app.listen(3000)
console.log('server started ...');